package com.qfmy.model.vo.novel;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app.vo.novel
 * @date 2025/10/31
 * @description 小说评论
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NovelCommentVo {

    @Schema(description = "评论ID（主键）")
    private Integer commentId;

    @Schema(description = "用户ID（关联用户表）")
    private Long userId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户头像地址")
    private String avatar;

    @Schema(description = "评分（1-5星，子评论无评分）")
    private BigDecimal rating;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "评论时间")
    private Date commentTime;

    @Schema(description = "点赞数")
    private Integer likeCount;

    @Schema(description = "子评论总数")
    private Integer replyCount;

    @Schema(description = "当前用户是否对这个评论点过赞")
    private Boolean isLiked;

}
